<?php
/**
 * main
 * @package    
 * @author     ben
 */
class indexAction extends sfAction
{
    public function execute($request)
    {
        // no escaping func for this action
        sfConfig::set("sf_escaping_strategy", false);
        
        // js required
//        $this->getResponse()->addJavaScript('jquery/jquery.layout.js', 'last');
//        $this->getResponse()->addJavaScript('jquery/plugins/jqgrid/i18n/grid.locale-cn.js', 'last');
//        $this->getResponse()->addJavaScript('jquery/plugins/jqgrid/jquery.jqGrid.min.js', 'last');
//        $this->getResponse()->addJavaScript('jquery/jquery.tablednd.js', 'last');
//        $this->getResponse()->addJavaScript('jquery/jquery.contextmenu.js', 'last');
//        $this->getResponse()->addJavaScript('jquery/ui.multiselect.js', 'last');

        // css required

//        $this->getResponse()->addStylesheet("jquery/jqgrid/ui.jqgrid.css", 'last');
//        $this->getResponse()->addStylesheet("jquery/jqgrid/ui.multiselect.css", 'last');
        
        
        //component js required, begin
        $this->getResponse()->addJavaScript("backend/default/".__CLASS__.".js", 'last');
        $this->getResponse()->addJavaScript("backend/default/heart_beat.js", 'last');
        //component js required, begin

        //component css required, begin
        $this->getResponse()->addStylesheet("backend/default/".__CLASS__.".css", 'last');
        //component css required, begin

                /******* jstree required, begin   *******/
//        $this->getResponse()->addJavaScript('jquery/jquery.cookie.js', 'last');
//        $this->getResponse()->addJavaScript('jquery/jquery.hotkeys.js', 'last');
//        $this->getResponse()->addJavaScript('jquery/jquery.metadata.js', 'last');
        $this->getResponse()->addJavaScript('lib/sarissa.js', 'last');
//        $this->getResponse()->addJavaScript('jquery/plugins/jstree/jquery.tree.min.js', 'last');
        $this->getResponse()->addJavaScript('jquery/plugins/jstree/jquery.tree.js', 'last');
        $this->getResponse()->addJavaScript('jquery/plugins/jstree/jquery.tree.checkbox.js', 'last');
        $this->getResponse()->addJavaScript('jquery/plugins/jstree/jquery.tree.contextmenu.js', 'last');
        $this->getResponse()->addJavaScript('jquery/plugins/jstree/jquery.tree.cookie.js', 'last');
        $this->getResponse()->addJavaScript('jquery/plugins/jstree/jquery.tree.hotkeys.js', 'last');
        $this->getResponse()->addJavaScript('jquery/plugins/jstree/jquery.tree.metadata.js', 'last');
        $this->getResponse()->addJavaScript('jquery/plugins/jstree/jquery.tree.themeroller.js', 'last');
        $this->getResponse()->addJavaScript('jquery/plugins/jstree/jquery.tree.xml_flat.js', 'last');
        $this->getResponse()->addJavaScript('jquery/plugins/jstree/jquery.tree.xml_nested.js', 'last');

        //component js required, begin
//        $this->getResponse()->addJavaScript("backend/goodsCategory/".__CLASS__.".js", 'last');
        //component js required, begin

        //component css required, begin
//        $this->getResponse()->addStylesheet("backend/goodsCategory/managerComponent.css", 'last');
        //component css required, begin
        /******* jstree required, end   *******/

       $this->setLayout("layout");
    }
}